package com.example.eventbus.listener;

import com.example.eventbus.command.MyCommand;
import com.example.eventbus.events.MyEventListener;
import com.google.common.eventbus.Subscribe;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.xml.transform.Result;

/**
 * @author 谢汉冰
 * @Title: MyEventListener2
 * @Package com.example.eventbus.listener
 * @date 2023/10/23 16:46
 * @description:
 */
@Component
@Slf4j
public class MyEventListener2 extends MyEventListener<MyCommand, Integer> {
	@Override
	public Integer receive(MyCommand command) {
		log.info("MyEventListener2 receive:{}", command);
		return 0;
	}
}
